$(document).ready(function(){
        
        $("#registration").click(function(){
            //event.preventDefault();
                    $.get(
                           "/registration/regform",
                           function(html){
                              $(".pac-container").after(html);
                           }
                    );
                        return false;
        });
        $("#login").click(function(){
            //event.preventDefault();
                    $.get(
                           "/registration/logform",
                           function(html){
                              $(".pac-container").after(html);
                           }
                    );
                        return false;
        });
        $(document).on( "click", "#model", function(event) {
            if ($(event.target).closest("#conteiner").length) return;
            
            $("#model").remove();
            event.stopPropagation();
        });
       $(document).on( "click", "#reg", function(event) {
            $(".signup-form-fields").removeClass("hidden-element");
            $("#reg").addClass("hidden-element");
            //event.preventDefault();
            return false;
            //$("#reg").remove();
        });
       // $("header-avatar-trigger");
        $(".user_menu").hover(
                function(){$("#user_menu").attr( "aria-hidden", "false" );},
                function(){  /*$("#user_menu").attr( "aria-hidden", "true" )*/;
        });
    });